Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Sep 2010 21:14:53 -0700
From:      perryh@pluto.rain.com
To:        m.seaman@infracaninophile.co.uk
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sysinstall vs gmirror
Message-ID:  <4c8da53d.pPK/NzHAHPlQPOfh%perryh@pluto.rain.com>
In-Reply-To: <4C8CD2A4.3020203@infracaninophile.co.uk>
References:  <4c83190a.SG%2BLIhPWaGtmaaeL%perryh@pluto.rain.com> <4C835474.7060707@infracaninophile.co.uk> <4c8487cc.Rh42YL91jTIv09e0%perryh@pluto.rain.com> <4c84ce46.sHyLaI%2BH%2BUzM%2BJ/y%perryh@pluto.rain.com> <4c8c5260.%2BCOCCpHgloxRSY2/%perryh@pluto.rain.com> <4C8CD2A4.3020203@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:

> On 12/09/2010 05:09:04, perryh@pluto.rain.com wrote:
> > How do I get sysinstall to recognize a gmirror?
> > ...
> I don't think sysinstall will do what you want.

It certainly has been less than totally cooperative so far :(

> However, what is your ultimate goal?
> To install a system with a gmirror root drive?

No, to install a system with each of /, /usr, and /var mirrored and
journalled, with each journal kept in the same (mirrored) partition
as its FS -- diagram below.  IIUC, to put the journal in the same
partition with the FS I have to create the journal while the FS is
empty, hence before installing.  (This is all UFS -- 512MB seems a
bit small for ZFS.)

The plan after partitioning the mirror is to create the journals,
then install onto the journalled FS's, and finally to insert the
second half of the mirror after everything else is up and running.

> ... you can boot into the Fixit system, set up mirroring etc. and
> then work through the rest of the installation process by hand.
> The install sets are just split up tarballs and it's pretty easy
> to extract a copy of a system from them.

The part I don't know how to do is partitioning gm0 by hand.
(I suppose it would require some sort of arcane incantations
involving bsdlabel.)  For all its limitations, sysinstall
seems at least to know how to translate a reasonably human-
readable representation of the desired slice and partition
layout into the necessary fdisk and bsdlabel commands.

Someone suggested using the PC-BSD installer, which knows how
to do stuff like this, but when I asked how to do that from a
memstick (rather than from a CD or DVD) I didn't get an answer.

     ad0s2 FreeBSD             ad2s2 FreeBSD
      ad0s2a <----- gm0 ----->  ad2s2a
                     |   
   +-----------------+
   |
   v
  gm0
   gm0a
    gm0a.journal [gjournal label gm0a gm0a]  rootFS
   gm0d
    gm0d.journal [gjournal label gm0a gm0a]  /var
   gm0e
    gm0e.journal [gjournal label gm0a gm0a]  /usr 

There's more to it than this, but I think I know how to do the rest.
The current sticking point is getting the mirror partitioned.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c8da53d.pPK/NzHAHPlQPOfh%perryh>